﻿@model MvcApplication4.Models.tb_UBS

@{
    ViewBag.Title = "Editar UBS";
}

<h2>Editar UBS</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Editar UBS</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.ID_UBS, "ID UBS")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ID_UBS)
            @Html.ValidationMessageFor(model => model.ID_UBS)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nome_UBS, "Nome UBS")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nome_UBS)
            @Html.ValidationMessageFor(model => model.Nome_UBS)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Endereco)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Endereco)
            @Html.ValidationMessageFor(model => model.Endereco)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Bairro)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Bairro)
            @Html.ValidationMessageFor(model => model.Bairro)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Cidade)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Cidade)
            @Html.ValidationMessageFor(model => model.Cidade)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Estado)
        </div>
        <div class="editor-field">
            @Html.DropDownList("Estado")
            @Html.ValidationMessageFor(model => model.Estado)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Telefone)
        </div>
        <div class="editor-field">
            @{ Html.Syncfusion().MaskEditTextBoxFor(model => model.Telefone).Mask("(99)99999-9999").Render(); }
            @Html.ValidationMessageFor(model => model.Telefone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <p>
            <input type="submit" value="Salvar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Voltar", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
